package dao;

import model.Address;
import model.User;

import java.util.List;

/**
 * @author yhl
 * @description 类说明
 * @date 2023-11-15 11:06
 * @email 2919886673@qq.com
 */
public interface AddressDao {
     List<Address> getAddressListByUserId(String id);

     int addAddress(Address address);

     List<Address> checkDefaultAddressIsExist(User user);

     int updateAddress(Address address);

     int updateOldAddressDefaultStatus(User user);

     int deleteAddressById(Address address);

     Address getUserDefaultAddress(User user);
}
